<?php
/**
 * Created by PhpStorm.
 * User: zhouliang
 * Date: 2021/2/27
 * Time: 上午10:39
 */

namespace App\Traits;

trait BelongsToUserRoom
{
    public function user_room()
    {
        return $this->belongsTo('App\Models\MainDB\UserRoom', 'room_id', 'id');
    }
}
